package com.suny.worker_thread.new_fix_thread_pool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Main {
    public static void main(String[] args) {
        try {
            ExecutorService executorService = Executors.newFixedThreadPool(5);

            new ClientThread("Alice", executorService).start();
            new ClientThread("Bobby", executorService).start();
            new ClientThread("Chris", executorService).start();
            Thread.sleep(5000);
        } catch (InterruptedException e) {
        }
    }
}
